package com.dh.project.mapper;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.dh.project.model.CustomerCoupon;
import com.dh.project.view.CouponView;

import java.util.List;
import java.util.Map;

public interface CustomerCouponMapper extends AutoMapper<CustomerCoupon> {
    int deleteByPrimaryKey(Integer id);

    int insert(CustomerCoupon record);

    int insertSelective(CustomerCoupon record);

    CustomerCoupon selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CustomerCoupon record);

    int updateByPrimaryKey(CustomerCoupon record);

    List<CouponView> selectCouponByMap(Map map);

    List<Integer> selectUseful();

    List<CustomerCoupon> selectCustomerCouponById(int coupon_id);
}